// Decompiled by:       Fernflower v0.6
// Date:                28.11.2010 03:55:55
// Copyright:           2008-2009, Stiver
// Home page:           http://www.reversed-java.com

import I.I;
import java.awt.Component;
import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
import java.io.InputStreamReader;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLClassLoader;
import java.util.Hashtable;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;

public class Main {

   public static GUI I;
   public static GUI2 Z;
   private static String[] KKLI = new String[]{"Direction", "GUI", "GUI$1", "GUI$2", "GUI$3", "GUI$4", "GUI$5", "GUI$6", "GUI$7", "GUI$8", "GUI$9", "GUI$10", "GUI$11", "GUI$12", "GUI$13", "GUI$14", "GUI$15", "GUI$16", "GUI$17", "GUI$18", "GUI$19", "GUI$20", "GUI$21", "GUI$22", "GUI2", "GUI2$1", "HBThread", "Item", "ItemDeleter", "ItemSet", "ItemSpawner", "Main", "MCThread", "MCUtils", "Status", "Teleport", "Type"};


   public static final void main(String[] var0) throws NoSuchMethodException, NoSuchFieldException, IllegalArgumentException, IllegalAccessException, InvocationTargetException, MalformedURLException, ClassNotFoundException {
      I.Z();
      KKLI();
      gj var1 = MCUtils.I();
      I = new GUI(var1);
      Z = new GUI2();
      I.setVisible(true);
      Z.setVisible(false);
      new HBThread(I);
      SEVERE();
   }

   private static void KKLI() throws NoSuchMethodException, NoSuchFieldException, IllegalArgumentException, IllegalAccessException, InvocationTargetException, MalformedURLException, ClassNotFoundException {
      File var0 = new File(I.I(), "bin");
      if(!var0.exists()) {
         JOptionPane.showMessageDialog((Component)null, "Please run Minecraft at least one time before using MCCheat.", "MCCheat", 2);
         System.exit(0);
      }

      File var1 = new File(var0, "natives");
      System.setProperty("net.java.games.input.librarypath", var1.getAbsolutePath());
      System.setProperty("org.lwjgl.librarypath", var1.getAbsolutePath());
      URLClassLoader var2 = (URLClassLoader)ClassLoader.getSystemClassLoader();
      Method var3 = URLClassLoader.class.getDeclaredMethod("addURL", new Class[]{URL.class});
      var3.setAccessible(true);
      Field var4 = ClassLoader.class.getDeclaredField("package2certs");
      var4.setAccessible(true);
      Hashtable var5 = (Hashtable)var4.get(var2);
      File[] var6 = var0.listFiles();
      int var7 = var6.length;

      for(int var8 = 0; var8 < var7; ++var8) {
         File var9 = var6[var8];
         var3.invoke(var2, new Object[]{var9.toURL()});
      }

      var5.remove("");
      Class.forName("gj");
      var5.remove("");

      for(int var10 = 0; var10 < KKLI.length; ++var10) {
         Class.forName(KKLI[var10]);
      }

      var5.remove("");
   }

   private static void SEVERE() {
      BufferedReader var0 = null;
      return;
//      try {
//         URL var1 = new URL("http://www.mccheat.net/mccheat/news.php");
//         var0 = new BufferedReader(new InputStreamReader(var1.openStream()));
//         String var2 = "";
//
//         while((var2 = var0.readLine()) != null) {
//            JOptionPane.showMessageDialog((Component)null, var2);
//         }
//
//         var0.close();
//      } catch (IOException var11) {
//         Logger.getLogger(Main.class.getName()).log(Level.SEVERE, (String)null, var11);
//      } finally {
//         try {
//            var0.close();
//         } catch (IOException var10) {
//            Logger.getLogger(Main.class.getName()).log(Level.SEVERE, (String)null, var10);
//         }
//
//      }

   }

}
